home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / GXErrors.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  37KB  |  745 lines

  1. /*
  2.      File:        GXErrors.h
  3.  
  4.      Contains:    QuickDraw GX error constants and debugging routines
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __GXERRORS__
  19. #define __GXERRORS__
  20.  
  21. #ifndef __CONDITIONALMACROS__
  22. #include <ConditionalMacros.h>
  23. #endif
  24. #ifndef __MIXEDMODE__
  25. #include <MixedMode.h>
  26. #endif
  27. #ifndef __GXTYPES__
  28. #include <GXTypes.h>
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if PRAGMA_IMPORT_SUPPORTED
  36. #pragma import on
  37. #endif
  38.  
  39. #if PRAGMA_ALIGN_SUPPORTED
  40. #pragma options align=mac68k
  41. #endif
  42.  
  43. #if defined(__MWERKS__) && GENERATING68K
  44.     #pragma push
  45.     #pragma pointers_in_D0
  46. #endif
  47.  
  48.  
  49. enum {
  50.     gxFirstSystemError            = -27999,                        /* 0xffff92a1 */
  51.     gxFirstFatalError            = -27999,
  52.     gxLastFatalError            = -27951,
  53.     gxFirstNonfatalError        = -27950,
  54.     gxFirstFontScalerError        = -27900,
  55.     gxLastFontScalerError        = -27851,
  56.     gxFirstParameterError        = -27850,
  57.     gxFirstImplementationLimitError = -27800,
  58.     gxFirstSystemDebuggingError    = -27700,
  59.     gxLastSystemError            = -27000,                        /* 0xffff9688 */
  60.     gxFirstLibraryError            = 1048576L,                        /* 0x00100000 */
  61.     gxLastLibraryError            = 2097151L,                        /* 0x001fffff */
  62.     gxFirstAppError                = 2097152L,                        /* 0x00200000 */
  63.     gxLastAppError                = 4194303L,                        /* 0x003fffff */
  64.     gxFirstSystemWarning        = -26999,                        /* 0xffff9689 */
  65.     gxFirstResultOutOfRangeWarning = -26950,
  66.     gxFirstParameterOutOfRangeWarning = -26900,
  67.     gxFirstFontScalerWarning    = -26850,
  68.     gxFirstSystemDebuggingWarning = -26700,
  69.     gxLastSystemWarning            = -26000,                        /* 0xffff9a70 */
  70.     gxFirstLibraryWarning        = 4194304L,                        /* 0x00400000 */
  71.     gxLastLibraryWarning        = 5242879L,                        /* 0x004fffff */
  72.     gxFirstAppWarning            = 5242880L,                        /* 0x00500000 */
  73.     gxLastAppWarning            = 7340031L,                        /* 0x006fffff */
  74.     gxFirstSystemNotice            = -25999,                        /* 0xffff9a71 */
  75.     gxLastSystemNotice            = -25500,                        /* 0xffff9c64 */
  76.     gxFirstLibraryNotice        = 7340032L,                        /* 0x00700000 */
  77.     gxLastLibraryNotice            = 7602175L,                        /* 0x0073ffff */
  78.     gxFirstAppNotice            = 7602176L,                        /* 0x00740000 */
  79.     gxLastAppNotice                = 8388607L                        /* 0x007fffff */
  80. };
  81.  
  82.  
  83. enum {
  84.                                                                 /* truly fatal errors */
  85.     out_of_memory                = gxFirstFatalError,
  86.     internal_fatal_error        = gxFirstFatalError + 1,
  87.     no_outline_font_found        = gxFirstFatalError + 2,
  88.     not_enough_memory_for_graphics_client_heap = gxFirstFatalError + 3,
  89.     could_not_create_backing_store = gxFirstFatalError + 4,        /* internal errors */
  90.     internal_error                = gxFirstNonfatalError,
  91.     internal_font_error            = gxFirstNonfatalError + 1,
  92.     internal_layout_error        = gxFirstNonfatalError + 2,        /* recoverable errors */
  93.     could_not_dispose_backing_store = internal_layout_error + 2,
  94.     unflattening_interrupted_by_client = internal_layout_error + 3, /* font manager errors */
  95.     font_cannot_be_changed        = internal_layout_error + 4,
  96.     illegal_font_parameter        = internal_layout_error + 5,    /* gxFont scaler errors */
  97.     null_font_scaler_context    = gxFirstFontScalerError,
  98.     null_font_scaler_input        = gxFirstFontScalerError + 1,
  99.     invalid_font_scaler_context    = gxFirstFontScalerError + 2,
  100.     invalid_font_scaler_input    = gxFirstFontScalerError + 3,
  101.     invalid_font_scaler_font_data = gxFirstFontScalerError + 4,
  102.     font_scaler_newblock_failed    = gxFirstFontScalerError + 5,
  103.     font_scaler_getfonttable_failed = gxFirstFontScalerError + 6,
  104.     font_scaler_bitmap_allocation_failed = gxFirstFontScalerError + 7,
  105.     font_scaler_outline_allocation_failed = gxFirstFontScalerError + 8,
  106.     required_font_scaler_table_missing = gxFirstFontScalerError + 9,
  107.     unsupported_font_scaler_outline_format = gxFirstFontScalerError + 10,
  108.     unsupported_font_scaler_stream_format = gxFirstFontScalerError + 11,
  109.     unsupported_font_scaler_font_format = gxFirstFontScalerError + 12,
  110.     font_scaler_hinting_error    = gxFirstFontScalerError + 13,
  111.     font_scaler_rasterizer_error = gxFirstFontScalerError + 14,
  112.     font_scaler_internal_error    = gxFirstFontScalerError + 15,
  113.     font_scaler_invalid_matrix    = gxFirstFontScalerError + 16,
  114.     font_scaler_fixed_overflow    = gxFirstFontScalerError + 17,
  115.     font_scaler_api_version_mismatch = gxFirstFontScalerError + 18,
  116.     font_scaler_streaming_aborted = gxFirstFontScalerError + 19,
  117.     unknown_font_scaler_error    = gxFirstFontScalerError + 20,    /* bad parameters */
  118.     parameter_is_nil            = gxFirstParameterError,
  119.     shape_is_nil                = gxFirstParameterError + 1,
  120.     style_is_nil                = gxFirstParameterError + 2,
  121.     transform_is_nil            = gxFirstParameterError + 3,
  122.     ink_is_nil                    = gxFirstParameterError + 4,
  123.     transferMode_is_nil            = gxFirstParameterError + 5,
  124.     color_is_nil                = gxFirstParameterError + 6,
  125.     colorProfile_is_nil            = gxFirstParameterError + 7,
  126.     colorSet_is_nil                = gxFirstParameterError + 8,
  127.     spoolProcedure_is_nil        = gxFirstParameterError + 9,
  128.     tag_is_nil                    = gxFirstParameterError + 10,
  129.     type_is_nil                    = gxFirstParameterError + 11,
  130.     mapping_is_nil                = gxFirstParameterError + 12,
  131.     invalid_viewDevice_reference = gxFirstParameterError + 13,
  132.     invalid_viewGroup_reference    = gxFirstParameterError + 14,
  133.     invalid_viewPort_reference    = gxFirstParameterError + 15,    /* implementation limits, these should be right before the debugging errors */
  134.     number_of_contours_exceeds_implementation_limit = gxFirstImplementationLimitError,
  135.     number_of_points_exceeds_implementation_limit = gxFirstImplementationLimitError + 1,
  136.     size_of_polygon_exceeds_implementation_limit = gxFirstImplementationLimitError + 2,
  137.     size_of_path_exceeds_implementation_limit = gxFirstImplementationLimitError + 3,
  138.     size_of_text_exceeds_implementation_limit = gxFirstImplementationLimitError + 4,
  139.     size_of_bitmap_exceeds_implementation_limit = gxFirstImplementationLimitError + 5,
  140.     number_of_colors_exceeds_implementation_limit = gxFirstImplementationLimitError + 6,
  141.     procedure_not_reentrant        = gxFirstImplementationLimitError + 7
  142. };
  143.  
  144.  
  145. enum {
  146.                                                                 /* internal debugging errors */
  147.     functionality_unimplemented    = gxFirstSystemDebuggingError,
  148.     clip_to_frame_shape_unimplemented = gxFirstSystemDebuggingError + 1, /* font parameter debugging errors */
  149.     illegal_font_storage_type    = gxFirstSystemDebuggingError + 2,
  150.     illegal_font_storage_reference = gxFirstSystemDebuggingError + 3,
  151.     illegal_font_attributes        = gxFirstSystemDebuggingError + 4, /* parameter debugging errors */
  152.     parameter_out_of_range        = gxFirstSystemDebuggingError + 5,
  153.     inconsistent_parameters        = gxFirstSystemDebuggingError + 6,
  154.     index_is_less_than_zero        = gxFirstSystemDebuggingError + 7,
  155.     index_is_less_than_one        = gxFirstSystemDebuggingError + 8,
  156.     count_is_less_than_zero        = gxFirstSystemDebuggingError + 9,
  157.     count_is_less_than_one        = gxFirstSystemDebuggingError + 10,
  158.     contour_is_less_than_zero    = gxFirstSystemDebuggingError + 11,
  159.     length_is_less_than_zero    = gxFirstSystemDebuggingError + 12,
  160.     invalid_client_reference    = gxFirstSystemDebuggingError + 13,
  161.     invalid_graphics_heap_start_pointer = gxFirstSystemDebuggingError + 14,
  162.     invalid_nongraphic_globals_pointer = gxFirstSystemDebuggingError + 15,
  163.     colorSpace_out_of_range        = gxFirstSystemDebuggingError + 16,
  164.     pattern_lattice_out_of_range = gxFirstSystemDebuggingError + 17,
  165.     frequency_parameter_out_of_range = gxFirstSystemDebuggingError + 18,
  166.     tinting_parameter_out_of_range = gxFirstSystemDebuggingError + 19,
  167.     method_parameter_out_of_range = gxFirstSystemDebuggingError + 20,
  168.     space_may_not_be_indexed    = gxFirstSystemDebuggingError + 21,
  169.     glyph_index_too_small        = gxFirstSystemDebuggingError + 22,
  170.     no_glyphs_added_to_font        = gxFirstSystemDebuggingError + 23,
  171.     glyph_not_added_to_font        = gxFirstSystemDebuggingError + 24,
  172.     point_does_not_intersect_bitmap = gxFirstSystemDebuggingError + 25,
  173.     required_font_table_not_present = gxFirstSystemDebuggingError + 26,
  174.     unknown_font_table_format    = gxFirstSystemDebuggingError + 27, /* the styles encoding is not present in the font */
  175.     shapeFill_not_allowed        = gxFirstSystemDebuggingError + 28,
  176.     inverseFill_face_must_set_clipLayer_flag = gxFirstSystemDebuggingError + 29,
  177.     invalid_transferMode_colorSpace = gxFirstSystemDebuggingError + 30,
  178.     colorProfile_must_be_nil    = gxFirstSystemDebuggingError + 31,
  179.     bitmap_pixel_size_must_be_1    = gxFirstSystemDebuggingError + 32,
  180.     empty_shape_not_allowed        = gxFirstSystemDebuggingError + 33,
  181.     ignorePlatformShape_not_allowed = gxFirstSystemDebuggingError + 34,
  182.     nil_style_in_glyph_not_allowed = gxFirstSystemDebuggingError + 35,
  183.     complex_glyph_style_not_allowed = gxFirstSystemDebuggingError + 36,
  184.     invalid_mapping                = gxFirstSystemDebuggingError + 37,
  185.     cannot_set_item_shapes_to_nil = gxFirstSystemDebuggingError + 38,
  186.     cannot_use_original_item_shapes_when_growing_picture = gxFirstSystemDebuggingError + 39,
  187.     cannot_add_unspecified_new_glyphs = gxFirstSystemDebuggingError + 40,
  188.     cannot_dispose_locked_tag    = gxFirstSystemDebuggingError + 41,
  189.     cannot_dispose_locked_shape    = gxFirstSystemDebuggingError + 42, /* restricted access */
  190.     shape_access_not_allowed    = gxFirstSystemDebuggingError + 43,
  191.     colorSet_access_restricted    = gxFirstSystemDebuggingError + 44,
  192.     colorProfile_access_restricted = gxFirstSystemDebuggingError + 45,
  193.     tag_access_restricted        = gxFirstSystemDebuggingError + 46,
  194.     viewDevice_access_restricted = gxFirstSystemDebuggingError + 47,
  195.     graphic_type_does_not_have_a_structure = gxFirstSystemDebuggingError + 48,
  196.     style_run_array_does_not_match_number_of_characters = gxFirstSystemDebuggingError + 49,
  197.     rectangles_cannot_be_inserted_into = gxFirstSystemDebuggingError + 50,
  198.     unknown_graphics_heap        = gxFirstSystemDebuggingError + 51,
  199.     graphics_routine_selector_is_obsolete = gxFirstSystemDebuggingError + 52,
  200.     cannot_set_graphics_client_memory_without_setting_size = gxFirstSystemDebuggingError + 53,
  201.     graphics_client_memory_too_small = gxFirstSystemDebuggingError + 54,
  202.     graphics_client_memory_is_already_allocated = gxFirstSystemDebuggingError + 55,
  203.     viewPort_is_a_window        = gxFirstSystemDebuggingError + 56, /* wrong type/bad reference */
  204.     illegal_type_for_shape        = gxFirstSystemDebuggingError + 57,
  205.     shape_does_not_contain_a_bitmap = gxFirstSystemDebuggingError + 58,
  206.     shape_does_not_contain_text    = gxFirstSystemDebuggingError + 59,
  207.     picture_expected            = gxFirstSystemDebuggingError + 60,
  208.     bitmap_is_not_resizable        = gxFirstSystemDebuggingError + 61,
  209.     shape_may_not_be_a_bitmap    = gxFirstSystemDebuggingError + 62,
  210.     shape_may_not_be_a_picture    = gxFirstSystemDebuggingError + 63,
  211.     graphic_type_does_not_contain_points = gxFirstSystemDebuggingError + 64,
  212.     graphic_type_does_not_have_multiple_contours = gxFirstSystemDebuggingError + 65,
  213.     graphic_type_cannot_be_mapped = gxFirstSystemDebuggingError + 66,
  214.     graphic_type_cannot_be_moved = gxFirstSystemDebuggingError + 67,
  215.     graphic_type_cannot_be_scaled = gxFirstSystemDebuggingError + 68,
  216.     graphic_type_cannot_be_rotated = gxFirstSystemDebuggingError + 69,
  217.     graphic_type_cannot_be_skewed = gxFirstSystemDebuggingError + 70,
  218.     graphic_type_cannot_be_reset = gxFirstSystemDebuggingError + 71,
  219.     graphic_type_cannot_be_dashed = gxFirstSystemDebuggingError + 72,
  220.     graphic_type_cannot_be_reduced = gxFirstSystemDebuggingError + 73,
  221.     graphic_type_cannot_be_inset = gxFirstSystemDebuggingError + 74,
  222.     shape_cannot_be_inverted    = gxFirstSystemDebuggingError + 75,
  223.     shape_does_not_have_area    = gxFirstSystemDebuggingError + 76,
  224.     shape_does_not_have_length    = gxFirstSystemDebuggingError + 77,
  225.     first_glyph_advance_must_be_absolute = gxFirstSystemDebuggingError + 78,
  226.     picture_cannot_contain_itself = gxFirstSystemDebuggingError + 79,
  227.     viewPort_cannot_contain_itself = gxFirstSystemDebuggingError + 80,
  228.     cannot_set_unique_items_attribute_when_picture_contains_items = gxFirstSystemDebuggingError + 81,
  229.     layer_style_cannot_contain_a_face = gxFirstSystemDebuggingError + 82,
  230.     layer_glyph_shape_cannot_contain_nil_styles = gxFirstSystemDebuggingError + 83, /* validation errors */
  231.     object_wrong_type            = gxFirstSystemDebuggingError + 84,
  232.     shape_wrong_type            = gxFirstSystemDebuggingError + 85,
  233.     style_wrong_type            = gxFirstSystemDebuggingError + 86,
  234.     ink_wrong_type                = gxFirstSystemDebuggingError + 87,
  235.     transform_wrong_type        = gxFirstSystemDebuggingError + 88,
  236.     device_wrong_type            = gxFirstSystemDebuggingError + 89,
  237.     port_wrong_type                = gxFirstSystemDebuggingError + 90, /* validation cache errors */
  238.     shape_cache_wrong_type        = gxFirstSystemDebuggingError + 91,
  239.     style_cache_wrong_type        = gxFirstSystemDebuggingError + 92,
  240.     ink_cache_wrong_type        = gxFirstSystemDebuggingError + 93,
  241.     transform_cache_wrong_type    = gxFirstSystemDebuggingError + 94,
  242.     port_cache_wrong_type        = gxFirstSystemDebuggingError + 95,
  243.     shape_cache_parent_mismatch    = gxFirstSystemDebuggingError + 96,
  244.     style_cache_parent_mismatch    = gxFirstSystemDebuggingError + 97,
  245.     ink_cache_parent_mismatch    = gxFirstSystemDebuggingError + 98,
  246.     transform_cache_parent_mismatch = gxFirstSystemDebuggingError + 99,
  247.     port_cache_parent_mismatch    = gxFirstSystemDebuggingError + 100,
  248.     invalid_shape_cache_port    = gxFirstSystemDebuggingError + 101,
  249.     invalid_shape_cache_device    = gxFirstSystemDebuggingError + 102,
  250.     invalid_ink_cache_port        = gxFirstSystemDebuggingError + 103,
  251.     invalid_ink_cache_device    = gxFirstSystemDebuggingError + 104,
  252.     invalid_style_cache_port    = gxFirstSystemDebuggingError + 105,
  253.     invalid_style_cache_device    = gxFirstSystemDebuggingError + 106,
  254.     invalid_transform_cache_port = gxFirstSystemDebuggingError + 107,
  255.     invalid_transform_cache_device = gxFirstSystemDebuggingError + 108,
  256.     recursive_caches            = gxFirstSystemDebuggingError + 109, /* validation shape cache errors */
  257.     invalid_fillShape_ownerCount = gxFirstSystemDebuggingError + 110,
  258.     recursive_fillShapes        = gxFirstSystemDebuggingError + 111, /* validation memory block errors */
  259.     indirect_memory_block_too_small = gxFirstSystemDebuggingError + 112,
  260.     indirect_memory_block_too_large = gxFirstSystemDebuggingError + 113,
  261.     unexpected_nil_pointer        = gxFirstSystemDebuggingError + 114,
  262.     bad_address                    = gxFirstSystemDebuggingError + 115, /* validation object errors */
  263.     no_owners                    = gxFirstSystemDebuggingError + 116,
  264.     invalid_pointer                = gxFirstSystemDebuggingError + 117,
  265.     invalid_seed                = gxFirstSystemDebuggingError + 118,
  266.     invalid_frame_seed            = gxFirstSystemDebuggingError + 119,
  267.     invalid_text_seed            = gxFirstSystemDebuggingError + 120,
  268.     invalid_draw_seed            = gxFirstSystemDebuggingError + 121,
  269.     bad_private_flags            = gxFirstSystemDebuggingError + 122, /* validation path and polygon errors */
  270.     invalid_vector_count        = gxFirstSystemDebuggingError + 123,
  271.     invalid_contour_count        = gxFirstSystemDebuggingError + 124, /* validation bitmap errors */
  272.     bitmap_ptr_too_small        = gxFirstSystemDebuggingError + 125,
  273.     bitmap_ptr_not_aligned        = gxFirstSystemDebuggingError + 126,
  274.     bitmap_rowBytes_negative    = gxFirstSystemDebuggingError + 127,
  275.     bitmap_width_negative        = gxFirstSystemDebuggingError + 128,
  276.     bitmap_height_negative        = gxFirstSystemDebuggingError + 129,
  277.     invalid_pixelSize            = gxFirstSystemDebuggingError + 130,
  278.     bitmap_rowBytes_too_small    = gxFirstSystemDebuggingError + 131,
  279.     bitmap_rowBytes_not_aligned    = gxFirstSystemDebuggingError + 132,
  280.     bitmap_rowBytes_must_be_specified_for_user_image_buffer = gxFirstSystemDebuggingError + 133, /* validation bitmap image errors */
  281.     invalid_bitImage_fileOffset    = gxFirstSystemDebuggingError + 134,
  282.     invalid_bitImage_owners        = gxFirstSystemDebuggingError + 135,
  283.     invalid_bitImage_rowBytes    = gxFirstSystemDebuggingError + 136,
  284.     invalid_bitImage_internal_flag = gxFirstSystemDebuggingError + 137, /* validation text errors */
  285.     text_bounds_cache_wrong_size = gxFirstSystemDebuggingError + 138,
  286.     text_metrics_cache_wrong_size = gxFirstSystemDebuggingError + 139,
  287.     text_index_cache_wrong_size    = gxFirstSystemDebuggingError + 140, /* validation glyph errors */
  288.     glyph_run_count_negative    = gxFirstSystemDebuggingError + 141,
  289.     glyph_run_count_zero        = gxFirstSystemDebuggingError + 142,
  290.     glyph_run_counts_do_not_sum_to_character_count = gxFirstSystemDebuggingError + 143,
  291.     glyph_first_advance_bit_set_not_allowed = gxFirstSystemDebuggingError + 144,
  292.     glyph_tangent_vectors_both_zero = gxFirstSystemDebuggingError + 145, /* validation layout errors */
  293.     layout_run_length_negative    = gxFirstSystemDebuggingError + 146,
  294.     layout_run_length_zero        = gxFirstSystemDebuggingError + 147,
  295.     layout_run_level_negative    = gxFirstSystemDebuggingError + 148,
  296.     layout_run_lengths_do_not_sum_to_text_length = gxFirstSystemDebuggingError + 149, /* validation picture errors */
  297.     bad_shape_in_picture        = gxFirstSystemDebuggingError + 150,
  298.     bad_style_in_picture        = gxFirstSystemDebuggingError + 151,
  299.     bad_ink_in_picture            = gxFirstSystemDebuggingError + 152,
  300.     bad_transform_in_picture    = gxFirstSystemDebuggingError + 153,
  301.     bad_shape_cache_in_picture    = gxFirstSystemDebuggingError + 154,
  302.     bad_seed_in_picture            = gxFirstSystemDebuggingError + 155,
  303.     invalid_picture_count        = gxFirstSystemDebuggingError + 156, /* validation text face errors */
  304.     bad_textLayer_count            = gxFirstSystemDebuggingError + 157,
  305.     bad_fillType_in_textFace    = gxFirstSystemDebuggingError + 158,
  306.     bad_style_in_textFace        = gxFirstSystemDebuggingError + 159,
  307.     bad_transform_in_textFace    = gxFirstSystemDebuggingError + 160, /* validation transform errors */
  308.     invalid_matrix_flag            = gxFirstSystemDebuggingError + 161,
  309.     transform_clip_missing        = gxFirstSystemDebuggingError + 162, /* validation font cache errors */
  310.     metrics_wrong_type            = gxFirstSystemDebuggingError + 163,
  311.     metrics_point_size_probably_bad = gxFirstSystemDebuggingError + 164,
  312.     scalar_block_wrong_type        = gxFirstSystemDebuggingError + 165,
  313.     scalar_block_parent_mismatch = gxFirstSystemDebuggingError + 166,
  314.     scalar_block_too_small        = gxFirstSystemDebuggingError + 167,
  315.     scalar_block_too_large        = gxFirstSystemDebuggingError + 168,
  316.     invalid_metrics_range        = gxFirstSystemDebuggingError + 169,
  317.     invalid_metrics_flags        = gxFirstSystemDebuggingError + 170,
  318.     metrics_maxWidth_probably_bad = gxFirstSystemDebuggingError + 171,
  319.     font_wrong_type                = gxFirstSystemDebuggingError + 172,
  320.     font_wrong_size                = gxFirstSystemDebuggingError + 173,
  321.     invalid_font_platform        = gxFirstSystemDebuggingError + 174,
  322.     invalid_lookup_range        = gxFirstSystemDebuggingError + 175,
  323.     invalid_lookup_platform        = gxFirstSystemDebuggingError + 176,
  324.     font_not_in_font_list        = gxFirstSystemDebuggingError + 177,
  325.     metrics_not_in_metrics_list    = gxFirstSystemDebuggingError + 178, /* validation view device errors */
  326.     bad_device_private_flags    = gxFirstSystemDebuggingError + 179,
  327.     bad_device_attributes        = gxFirstSystemDebuggingError + 180,
  328.     invalid_device_number        = gxFirstSystemDebuggingError + 181,
  329.     invalid_device_viewGroup    = gxFirstSystemDebuggingError + 182,
  330.     invalid_device_bounds        = gxFirstSystemDebuggingError + 183,
  331.     invalid_bitmap_in_device    = gxFirstSystemDebuggingError + 184, /* validation color set errors */
  332.     colorSet_wrong_type            = gxFirstSystemDebuggingError + 185,
  333.     invalid_colorSet_viewDevice_owners = gxFirstSystemDebuggingError + 186,
  334.     invalid_colorSet_colorSpace    = gxFirstSystemDebuggingError + 187,
  335.     invalid_colorSet_count        = gxFirstSystemDebuggingError + 188, /* validation color profile errors */
  336.     colorProfile_wrong_type        = gxFirstSystemDebuggingError + 189,
  337.     invalid_colorProfile_flags    = gxFirstSystemDebuggingError + 190,
  338.     invalid_colorProfile_response_count = gxFirstSystemDebuggingError + 191, /* validation internal backing store errors */
  339.     backing_free_parent_mismatch = gxFirstSystemDebuggingError + 192,
  340.     backing_store_parent_mismatch = gxFirstSystemDebuggingError + 193
  341. };
  342.  
  343.  
  344. enum {
  345.                                                                 /* warnings about warnings */
  346.     warning_stack_underflow        = gxFirstSystemWarning,
  347.     warning_stack_overflow        = gxFirstSystemWarning + 1,
  348.     notice_stack_underflow        = gxFirstSystemWarning + 2,
  349.     notice_stack_overflow        = gxFirstSystemWarning + 3,
  350.     about_to_grow_heap            = gxFirstSystemWarning + 4,
  351.     about_to_unload_objects        = gxFirstSystemWarning + 5,        /* result went out of range */
  352.     map_shape_out_of_range        = gxFirstResultOutOfRangeWarning,
  353.     move_shape_out_of_range        = gxFirstResultOutOfRangeWarning + 1,
  354.     scale_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 2,
  355.     rotate_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 3,
  356.     skew_shape_out_of_range        = gxFirstResultOutOfRangeWarning + 4,
  357.     map_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 5,
  358.     move_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 6,
  359.     scale_transform_out_of_range = gxFirstResultOutOfRangeWarning + 7,
  360.     rotate_transform_out_of_range = gxFirstResultOutOfRangeWarning + 8,
  361.     skew_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 9,
  362.     map_points_out_of_range        = gxFirstResultOutOfRangeWarning + 10, /* gave a parameter out of range */
  363.     contour_out_of_range        = gxFirstParameterOutOfRangeWarning,
  364.     index_out_of_range_in_contour = gxFirstParameterOutOfRangeWarning + 1,
  365.     picture_index_out_of_range    = gxFirstParameterOutOfRangeWarning + 2,
  366.     color_index_requested_not_found = gxFirstParameterOutOfRangeWarning + 3,
  367.     colorSet_index_out_of_range    = gxFirstParameterOutOfRangeWarning + 4,
  368.     index_out_of_range            = gxFirstParameterOutOfRangeWarning + 5,
  369.     count_out_of_range            = gxFirstParameterOutOfRangeWarning + 6,
  370.     length_out_of_range            = gxFirstParameterOutOfRangeWarning + 7,
  371.     font_table_index_out_of_range = gxFirstParameterOutOfRangeWarning + 8,
  372.     font_glyph_index_out_of_range = gxFirstParameterOutOfRangeWarning + 9,
  373.     point_out_of_range            = gxFirstParameterOutOfRangeWarning + 10,
  374.     profile_response_out_of_range = gxFirstParameterOutOfRangeWarning + 11, /* gxFont scaler warnings */
  375.     font_scaler_no_output        = gxFirstFontScalerWarning,
  376.     font_scaler_fake_metrics    = gxFirstFontScalerWarning + 1,
  377.     font_scaler_fake_linespacing = gxFirstFontScalerWarning + 2,
  378.     font_scaler_glyph_substitution = gxFirstFontScalerWarning + 3,
  379.     font_scaler_no_kerning_applied = gxFirstFontScalerWarning + 4, /* might not be what you expected */
  380.     character_substitution_took_place = gxFirstFontScalerWarning + 5,
  381.     unable_to_get_bounds_on_multiple_devices = gxFirstFontScalerWarning + 6,
  382.     font_language_not_found        = gxFirstFontScalerWarning + 7,
  383.     font_not_found_during_unflattening = gxFirstFontScalerWarning + 8, /*storage */
  384.     unrecognized_stream_version    = gxFirstFontScalerWarning + 9,
  385.     bad_data_in_stream            = gxFirstFontScalerWarning + 10
  386. };
  387.  
  388.  
  389. enum {
  390.                                                                 /* nonsense data */
  391.     new_shape_contains_invalid_data = gxFirstSystemDebuggingWarning,
  392.     new_tag_contains_invalid_data = gxFirstSystemDebuggingWarning + 1,
  393.     extra_data_passed_was_ignored = gxFirstSystemDebuggingWarning + 2,
  394.     font_table_not_found        = gxFirstSystemDebuggingWarning + 3,
  395.     font_name_not_found            = gxFirstSystemDebuggingWarning + 4, /* doesn't make sense to do */
  396.     unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 5,
  397.     unable_to_draw_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 6,
  398.     cannot_dispose_default_shape = gxFirstSystemDebuggingWarning + 7,
  399.     cannot_dispose_default_style = gxFirstSystemDebuggingWarning + 8,
  400.     cannot_dispose_default_ink    = gxFirstSystemDebuggingWarning + 9,
  401.     cannot_dispose_default_transform = gxFirstSystemDebuggingWarning + 10,
  402.     cannot_dispose_default_colorProfile = gxFirstSystemDebuggingWarning + 11,
  403.     cannot_dispose_default_colorSet = gxFirstSystemDebuggingWarning + 12,
  404.     shape_direct_attribute_not_set = gxFirstSystemDebuggingWarning + 13, /* couldn't find what you were looking for */
  405.     point_does_not_intersect_port = gxFirstSystemDebuggingWarning + 14,
  406.     cannot_dispose_non_font        = gxFirstSystemDebuggingWarning + 15,
  407.     face_override_style_font_must_match_style = gxFirstSystemDebuggingWarning + 16,
  408.     union_of_area_and_length_returns_area_only = gxFirstSystemDebuggingWarning + 17,
  409.     insufficient_coordinate_space_for_new_device = gxFirstSystemDebuggingWarning + 18, /* other */
  410.     shape_passed_has_no_bounds    = gxFirstSystemDebuggingWarning + 19,
  411.     tags_of_type_flst_removed    = gxFirstSystemDebuggingWarning + 20,
  412.     translator_not_installed_on_this_grafport = gxFirstSystemDebuggingWarning + 21
  413. };
  414.  
  415.  
  416. enum {
  417.     parameters_have_no_effect    = gxFirstSystemNotice,
  418.     attributes_already_set        = gxFirstSystemNotice + 1,
  419.     caps_already_set            = gxFirstSystemNotice + 2,
  420.     clip_already_set            = gxFirstSystemNotice + 3,
  421.     color_already_set            = gxFirstSystemNotice + 4,
  422.     curve_error_already_set        = gxFirstSystemNotice + 5,
  423.     dash_already_set            = gxFirstSystemNotice + 6,
  424.     default_colorProfile_already_set = gxFirstSystemNotice + 7,
  425.     default_ink_already_set        = gxFirstSystemNotice + 8,
  426.     default_transform_already_set = gxFirstSystemNotice + 9,
  427.     default_shape_already_set    = gxFirstSystemNotice + 10,
  428.     default_style_already_set    = gxFirstSystemNotice + 11,
  429.     dither_already_set            = gxFirstSystemNotice + 12,
  430.     encoding_already_set        = gxFirstSystemNotice + 13,
  431.     face_already_set            = gxFirstSystemNotice + 14,
  432.     fill_already_set            = gxFirstSystemNotice + 15,
  433.     font_already_set            = gxFirstSystemNotice + 16,
  434.     font_variations_already_set    = gxFirstSystemNotice + 17,
  435.     glyph_positions_are_already_set = gxFirstSystemNotice + 18,
  436.     glyph_tangents_are_already_set = gxFirstSystemNotice + 19,
  437.     halftone_already_set        = gxFirstSystemNotice + 20,
  438.     hit_test_already_set        = gxFirstSystemNotice + 21,
  439.     ink_already_set                = gxFirstSystemNotice + 22,
  440.     join_already_set            = gxFirstSystemNotice + 23,
  441.     justification_already_set    = gxFirstSystemNotice + 24,
  442.     mapping_already_set            = gxFirstSystemNotice + 25,
  443.     pattern_already_set            = gxFirstSystemNotice + 26,
  444.     pen_already_set                = gxFirstSystemNotice + 27,
  445.     style_already_set            = gxFirstSystemNotice + 28,
  446.     tag_already_set                = gxFirstSystemNotice + 29,
  447.     text_attributes_already_set    = gxFirstSystemNotice + 30,
  448.     text_size_already_set        = gxFirstSystemNotice + 31,
  449.     transfer_already_set        = gxFirstSystemNotice + 32,
  450.     translator_already_installed_on_this_grafport = gxFirstSystemNotice + 33,
  451.     transform_already_set        = gxFirstSystemNotice + 34,
  452.     type_already_set            = gxFirstSystemNotice + 35,
  453.     validation_level_already_set = gxFirstSystemNotice + 36,
  454.     viewPorts_already_set        = gxFirstSystemNotice + 37,
  455.     viewPort_already_in_viewGroup = gxFirstSystemNotice + 38,
  456.     viewDevice_already_in_viewGroup = gxFirstSystemNotice + 39,
  457.     geometry_unaffected            = gxFirstSystemNotice + 40,
  458.     mapping_unaffected            = gxFirstSystemNotice + 41,
  459.     tags_in_shape_ignored        = gxFirstSystemNotice + 42,
  460.     shape_already_in_primitive_form = gxFirstSystemNotice + 43,
  461.     shape_already_in_simple_form = gxFirstSystemNotice + 44,
  462.     shape_already_broken        = gxFirstSystemNotice + 45,
  463.     shape_already_joined        = gxFirstSystemNotice + 46,
  464.     cache_already_cleared        = gxFirstSystemNotice + 47,
  465.     shape_not_disposed            = gxFirstSystemNotice + 48,
  466.     style_not_disposed            = gxFirstSystemNotice + 49,
  467.     ink_not_disposed            = gxFirstSystemNotice + 50,
  468.     transform_not_disposed        = gxFirstSystemNotice + 51,
  469.     colorSet_not_disposed        = gxFirstSystemNotice + 52,
  470.     colorProfile_not_disposed    = gxFirstSystemNotice + 53,
  471.     font_not_disposed            = gxFirstSystemNotice + 54,
  472.     glyph_tangents_have_no_effect = gxFirstSystemNotice + 55,
  473.     glyph_positions_determined_by_advance = gxFirstSystemNotice + 56,
  474.     transform_viewPorts_already_set = gxFirstSystemNotice + 57,
  475.     directShape_attribute_set_as_side_effect = gxFirstSystemNotice + 58,
  476.     lockShape_called_as_side_effect = gxFirstSystemNotice + 59,
  477.     lockTag_called_as_side_effect = gxFirstSystemNotice + 60,
  478.     shapes_unlocked_as_side_effect = gxFirstSystemNotice + 61,
  479.     shape_not_locked            = gxFirstSystemNotice + 62,
  480.     tag_not_locked                = gxFirstSystemNotice + 63,
  481.     profile_not_locked            = tag_not_locked,
  482.     lockProfile_called_as_side_effect = lockTag_called_as_side_effect,
  483.     disposed_dead_caches        = gxFirstSystemNotice + 64,
  484.     disposed_live_caches        = gxFirstSystemNotice + 65,
  485.     low_on_memory                = gxFirstSystemNotice + 66,
  486.     very_low_on_memory            = gxFirstSystemNotice + 67,
  487.     transform_references_disposed_viewPort = gxFirstSystemNotice + 68
  488. };
  489.  
  490. typedef long gxGraphicsError;
  491. typedef long gxGraphicsWarning;
  492. typedef long gxGraphicsNotice;
  493. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  494. typedef void (*gxUserErrorProcPtr)(gxGraphicsError status, long refcon);
  495. typedef void (*gxUserWarningProcPtr)(gxGraphicsWarning status, long refcon);
  496. typedef void (*gxUserNoticeProcPtr)(gxGraphicsNotice status, long refcon);
  497.  
  498. #if GENERATINGCFM
  499. typedef UniversalProcPtr gxUserErrorUPP;
  500. typedef UniversalProcPtr gxUserWarningUPP;
  501. typedef UniversalProcPtr gxUserNoticeUPP;
  502. #else
  503. typedef gxUserErrorProcPtr gxUserErrorUPP;
  504. typedef gxUserWarningProcPtr gxUserWarningUPP;
  505. typedef gxUserNoticeProcPtr gxUserNoticeUPP;
  506. #endif
  507.  
  508. enum {
  509.     uppgxUserErrorProcInfo = kCStackBased
  510.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxGraphicsError)))
  511.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long))),
  512.     uppgxUserWarningProcInfo = kCStackBased
  513.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxGraphicsWarning)))
  514.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long))),
  515.     uppgxUserNoticeProcInfo = kCStackBased
  516.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxGraphicsNotice)))
  517.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  518. };
  519.  
  520. #if GENERATINGCFM
  521. #define NewgxUserErrorProc(userRoutine)        \
  522.         (gxUserErrorUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserErrorProcInfo, GetCurrentArchitecture())
  523. #define NewgxUserWarningProc(userRoutine)        \
  524.         (gxUserWarningUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserWarningProcInfo, GetCurrentArchitecture())
  525. #define NewgxUserNoticeProc(userRoutine)        \
  526.         (gxUserNoticeUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserNoticeProcInfo, GetCurrentArchitecture())
  527. #else
  528. #define NewgxUserErrorProc(userRoutine)        \
  529.         ((gxUserErrorUPP) (userRoutine))
  530. #define NewgxUserWarningProc(userRoutine)        \
  531.         ((gxUserWarningUPP) (userRoutine))
  532. #define NewgxUserNoticeProc(userRoutine)        \
  533.         ((gxUserNoticeUPP) (userRoutine))
  534. #endif
  535.  
  536. #if GENERATINGCFM
  537. #define CallgxUserErrorProc(userRoutine, status, refcon)        \
  538.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxUserErrorProcInfo, (status), (refcon))
  539. #define CallgxUserWarningProc(userRoutine, status, refcon)        \
  540.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxUserWarningProcInfo, (status), (refcon))
  541. #define CallgxUserNoticeProc(userRoutine, status, refcon)        \
  542.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxUserNoticeProcInfo, (status), (refcon))
  543. #else
  544. #define CallgxUserErrorProc(userRoutine, status, refcon)        \
  545.         (*(userRoutine))((status), (refcon))
  546. #define CallgxUserWarningProc(userRoutine, status, refcon)        \
  547.         (*(userRoutine))((status), (refcon))
  548. #define CallgxUserNoticeProc(userRoutine, status, refcon)        \
  549.         (*(userRoutine))((status), (refcon))
  550. #endif
  551. typedef gxUserErrorProcPtr gxUserErrorFunction;
  552. typedef gxUserWarningProcPtr gxUserWarningFunction;
  553. typedef gxUserNoticeProcPtr gxUserNoticeFunction;
  554. #endif
  555.  
  556. enum {
  557.     common_colors_not_initialized = gxFirstLibraryError,
  558.     no_open_picture                = gxFirstLibraryError + 1,
  559.     picture_already_open        = gxFirstLibraryError + 2,
  560.     no_open_poly                = gxFirstLibraryError + 3,
  561.     poly_already_open            = gxFirstLibraryError + 4,
  562.     no_open_region                = gxFirstLibraryError + 5,
  563.     region_already_open            = gxFirstLibraryError + 6,
  564.     no_active_picture            = gxFirstLibraryError + 7
  565. };
  566.  
  567.  
  568. enum {
  569.     no_picture_drawn            = gxFirstLibraryWarning,
  570.     polygons_have_different_size_contours = gxFirstLibraryWarning + 1,
  571.     graphic_type_cannot_be_specifed_by_four_values = gxFirstLibraryWarning + 2,
  572.     graphic_type_cannot_be_specifed_by_six_values = gxFirstLibraryWarning + 3,
  573.     point_expected                = gxFirstLibraryWarning + 4,
  574.     line_or_rectangle_expected    = gxFirstLibraryWarning + 5,
  575.     curve_expected                = gxFirstLibraryWarning + 6,
  576.     graphic_type_does_not_contain_control_bits = gxFirstLibraryWarning + 7,
  577.     request_exceeds_available_data = gxFirstLibraryWarning + 8,
  578.     extra_data_unread            = gxFirstLibraryWarning + 9,
  579.     no_variable_length_user_data_saved = gxFirstLibraryWarning + 10
  580. };
  581.  
  582.  
  583. enum {
  584.     zero_length_string_passed    = gxFirstLibraryNotice
  585. };
  586.  
  587.  
  588. enum {
  589.                                                                 /* These levels tell how to validate routines.  Choose one. */
  590.     gxNoValidation                = 0x00,                            /* no validation */
  591.     gxPublicValidation            = 0x01,                            /* check parameters to public routines */
  592.     gxInternalValidation        = 0x02,                            /* check parameters to internal routines */
  593.                                                                 /* These levels tell how to validate types.  Choose one. */
  594.     gxTypeValidation            = 0x00,                            /* check types of objects */
  595.     gxStructureValidation        = 0x10,                            /* check fields of private structures */
  596.     gxAllObjectValidation        = 0x20,                            /* check every object over every call */
  597.                                                                 /* These levels tell how to validate memory manager blocks.  Choose any combination. */
  598.     gxNoMemoryManagerValidation    = 0x0000,
  599.     gxApBlockValidation            = 0x0100,                        /* check the relevant block structures after each memory mgr. call */
  600.     gxFontBlockValidation        = 0x0200,                        /* check the system gxHeap as well */
  601.     gxApHeapValidation            = 0x0400,                        /* check the memory manager's gxHeap after every mem. call */
  602.     gxFontHeapValidation        = 0x0800,                        /* check the system gxHeap as well */
  603.     gxCheckApHeapValidation        = 0x1000,                        /* check the memory manager's gxHeap if checking routine parameters */
  604.     gxCheckFontHeapValidation    = 0x2000                        /* check the system gxHeap as well */
  605. };
  606.  
  607. typedef long gxValidationLevel;
  608.  
  609. enum {
  610.     no_draw_error                = 0,                            /* gxShape type errors */
  611.     shape_emptyType                = 1,
  612.     shape_inverse_fullType        = 2,
  613.     rectangle_zero_width        = 3,
  614.     rectangle_zero_height        = 4,
  615.     polygon_empty                = 5,
  616.     path_empty                    = 6,
  617.     bitmap_zero_width            = 7,
  618.     bitmap_zero_height            = 8,
  619.     text_empty                    = 9,
  620.     glyph_empty                    = 10,
  621.     layout_empty                = 11,
  622.     picture_empty                = 12,                            /* general gxShape errors */
  623.     shape_no_fill                = 13,
  624.     shape_no_enclosed_area        = 14,
  625.     shape_no_enclosed_pixels    = 15,
  626.     shape_very_small            = 16,
  627.     shape_very_large            = 17,
  628.     shape_contours_cancel        = 18,                            /* gxStyle errors */
  629.     pen_too_small                = 19,
  630.     text_size_too_small            = 20,
  631.     dash_empty                    = 21,
  632.     start_cap_empty                = 22,
  633.     pattern_empty                = 23,
  634.     textFace_empty                = 24,
  635.     shape_primitive_empty        = 25,
  636.     shape_primitive_very_small    = 26,                            /* gxInk errors */
  637.     transfer_equals_noMode        = 27,
  638.     transfer_matrix_ignores_source = 28,
  639.     transfer_matrix_ignores_device = 29,
  640.     transfer_source_reject        = 30,
  641.     transfer_mode_ineffective    = 31,
  642.     colorSet_no_entries            = 32,
  643.     bitmap_colorSet_one_entry    = 33,                            /* gxTransform errors */
  644.     transform_scale_too_small    = 34,
  645.     transform_map_too_large        = 35,
  646.     transform_move_too_large    = 36,
  647.     transform_scale_too_large    = 37,
  648.     transform_rotate_too_large    = 38,
  649.     transform_perspective_too_large = 39,
  650.     transform_skew_too_large    = 40,
  651.     transform_clip_no_intersection = 41,
  652.     transform_clip_empty        = 42,
  653.     transform_no_viewPorts        = 43,                            /* gxViewPort errors */
  654.     viewPort_disposed            = 44,
  655.     viewPort_clip_empty            = 45,
  656.     viewPort_clip_no_intersection = 46,
  657.     viewPort_scale_too_small    = 47,
  658.     viewPort_map_too_large        = 48,
  659.     viewPort_move_too_large        = 49,
  660.     viewPort_scale_too_large    = 50,
  661.     viewPort_rotate_too_large    = 51,
  662.     viewPort_perspective_too_large = 52,
  663.     viewPort_skew_too_large        = 53,
  664.     viewPort_viewGroup_offscreen = 54,                            /* gxViewDevice errors */
  665.     viewDevice_clip_no_intersection = 55,
  666.     viewDevice_scale_too_small    = 56,
  667.     viewDevice_map_too_large    = 57,
  668.     viewDevice_move_too_large    = 58,
  669.     viewDevice_scale_too_large    = 59,
  670.     viewDevice_rotate_too_large    = 60,
  671.     viewDevice_perspective_too_large = 61,
  672.     viewDevice_skew_too_large    = 62
  673. };
  674.  
  675. typedef long gxDrawError;
  676. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  677. extern gxDrawError GXGetShapeDrawError(gxShape source)
  678.  THREEWORDINLINE(0x303C, 0x01EE, 0xA832);
  679.  
  680. extern void GXValidateAll(void )
  681.  THREEWORDINLINE(0x303C, 0x01EF, 0xA832);
  682.  
  683. extern void GXValidateColorSet(gxColorSet target)
  684.  THREEWORDINLINE(0x303C, 0x01F0, 0xA832);
  685.  
  686. extern void GXValidateColorProfile(gxColorProfile target)
  687.  THREEWORDINLINE(0x303C, 0x01F1, 0xA832);
  688.  
  689. extern void GXValidateGraphicsClient(gxGraphicsClient target)
  690.  THREEWORDINLINE(0x303C, 0x01F2, 0xA832);
  691.  
  692. extern void GXValidateInk(gxInk target)
  693.  THREEWORDINLINE(0x303C, 0x01F3, 0xA832);
  694.  
  695. extern void GXValidateShape(gxShape target)
  696.  THREEWORDINLINE(0x303C, 0x01F4, 0xA832);
  697.  
  698. extern void GXValidateStyle(gxStyle target)
  699.  THREEWORDINLINE(0x303C, 0x01F5, 0xA832);
  700.  
  701. extern void GXValidateTag(gxTag target)
  702.  THREEWORDINLINE(0x303C, 0x01F6, 0xA832);
  703.  
  704. extern void GXValidateTransform(gxTransform target)
  705.  THREEWORDINLINE(0x303C, 0x01F7, 0xA832);
  706.  
  707. extern void GXValidateViewDevice(gxViewDevice target)
  708.  THREEWORDINLINE(0x303C, 0x01F8, 0xA832);
  709.  
  710. extern void GXValidateViewPort(gxViewPort target)
  711.  THREEWORDINLINE(0x303C, 0x01F9, 0xA832);
  712.  
  713. extern void GXValidateViewGroup(gxViewGroup target)
  714.  THREEWORDINLINE(0x303C, 0x01FA, 0xA832);
  715.  
  716. extern gxValidationLevel GXGetValidation(void )
  717.  THREEWORDINLINE(0x303C, 0x01FB, 0xA832);
  718.  
  719. extern void GXSetValidation(gxValidationLevel level)
  720.  THREEWORDINLINE(0x303C, 0x01FC, 0xA832);
  721.  
  722. extern long GXGetValidationError(char *procedureName, void **argument, long *argumentNumber)
  723.  THREEWORDINLINE(0x303C, 0x01FD, 0xA832);
  724.  
  725. #endif
  726.  
  727. #if defined(__MWERKS__) && GENERATING68K
  728.     #pragma pop
  729. #endif
  730.  
  731. #if PRAGMA_ALIGN_SUPPORTED
  732. #pragma options align=reset
  733. #endif
  734.  
  735. #if PRAGMA_IMPORT_SUPPORTED
  736. #pragma import off
  737. #endif
  738.  
  739. #ifdef __cplusplus
  740. }
  741. #endif
  742.  
  743. #endif /* __GXERRORS__ */
  744.  
  745.